package com.lmt;

import org.apache.shiro.authz.UnauthorizedException;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

@ControllerAdvice
public class ControllerExceptionAdvice {

    @ExceptionHandler(value = UnauthorizedException.class)
    public String unauthorizedExceptionHandler(Exception e) {
        return "/unauthorized";
    }

}
